package com.xin.springcloudconsumer.service;

import com.xin.springcloudconsumer.dto.UserDTO;
import com.xin.springcloudconsumer.form.UserForm;

public interface UserService {
    // 创建用户
    UserDTO create(UserForm userForm);
    //更新用户
    UserDTO update(UserForm userForm);
    //删除用户
    boolean delete(String id);
    //根据用户ID查询用户
    UserDTO findOneByUserId(String uid);
    //根据openId查询用户
    UserDTO findOneByOpenId(String openId);
}
